<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <title>分类列表</title>
</head>
<body>
    <table>
        <tr th:each="shopType,csfStat : ${pager.content}">
            <td th:text="${csfStat.count}" class="text-center">
                1
            </td>
            <td th:text="${shopType.typeName}" class="text-center">
                TB - Monthly
            </td>
            <td th:text="${#calendars.format(shopType.createTime,'yyyy-MM-dd HH:mm:ss')}" class="text-center">
                01/04/2012
            </td>
            <td th:text="${shopType.createUser!=null?shopType.createUser.realName:''}" class="text-center">
                Default
            </td>
            <td class="text-center">
                <input type="button" class="btn btn-sm btn-success" value="查看" th:onclick="'lookShopType('+${shopType.id}+')'"/>
                <input type="button" class="btn btn-sm btn-info" value="修改" th:onclick="'editShopType('+${shopType.id}+')'"/>
                <input type="button" class="btn btn-sm btn-danger" value="删除" th:onclick="'deleteShopType('+${shopType.id}+')'"/>
            </td>
        </tr>
        <tr>
            <td colspan="5" class="text-center">
                <!--分页组件-->
                <div th:replace="fragment::pager(${pager})">
                </div>
            </td>
        </tr>
    </table>
</body>
</html>